﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Mvc;

namespace Mailer.Controllers
{
	public class APIResult : ActionResult
	{
		private string _resultstring;

		public string ResultString
		{
			get { return _resultstring; }
			set { _resultstring = value; }
		}

		public APIResult()
		{
		}

		public APIResult(string rs)
		{
			ResultString = rs;
		}

		public override void ExecuteResult(ControllerContext context)
		{
			context.HttpContext.Response.Write("Hej från apiresult");
			context.HttpContext.Response.Write(ResultString);

		}
	}

}
